package com.cooge.collection.pojo;
// default package

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Video entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "video", catalog = "sharevideo")
public class Video implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 295608925890734783L;
	private Long id;
	private String title;
	private String videoAdress;
	private String introduction;
	private Timestamp updatetime;
	private String videoNo;
	private String webImg;

	// Constructors

	/** default constructor */
	public Video() {
	}

	/** full constructor */
	public Video(String title, String videoAdress, String introduction,
			Timestamp updatetime, String videoNo) {
		this.title = title;
		this.videoAdress = videoAdress;
		this.introduction = introduction;
		this.updatetime = updatetime;
		this.videoNo = videoNo;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "title", length = 200)
	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@Column(name = "videoAdress", length = 500)
	public String getVideoAdress() {
		return this.videoAdress;
	}

	public void setVideoAdress(String videoAdress) {
		this.videoAdress = videoAdress;
	}

	@Column(name = "introduction", length = 500)
	public String getIntroduction() {
		return this.introduction;
	}

	public void setIntroduction(String introduction) {
		this.introduction = introduction;
	}

	@Column(name = "updatetime", length = 19)
	public Timestamp getUpdatetime() {
		return this.updatetime;
	}

	public void setUpdatetime(Timestamp updatetime) {
		this.updatetime = updatetime;
	}

	@Column(name = "videoNO")
	public String getVideoNo() {
		return this.videoNo;
	}

	public void setVideoNo(String videoNo) {
		this.videoNo = videoNo;
	}
	@Column(name = "webImg", length = 255)
	public String getWebImg() {
		return webImg;
	}

	public void setWebImg(String webImg) {
		this.webImg = webImg;
	}

}